package com.invoicing.Service;
import com.invoicing.entity.Type;
import com.invoicing.dao.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TypeService {
    @Autowired
    private TypeMapper typeMapper;

    public Type findById(int typeId){
        return typeMapper.selectById(typeId);
    }
    public Type findByName(String string){
        return typeMapper.selectByName(string);
    }
}
